package com.zdb.order.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zdb.order.entity.Address;
import com.zdb.order.entity.Citys;
import com.zdb.order.mapper.CitysMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CitysService {
    @Autowired
    private CitysMapper citysMapper;

    //pid，查询City对象
    public Citys queryCitys(int cid){
        Citys resultCitys = citysMapper.selectOne(new QueryWrapper<Citys>().eq("id", cid));
        return resultCitys;
    }
}
